package com.domain;

//学生描述类
public class Student {
    //公开
    public String name;
    public int age;
    //添加static就是共享了，修改一个全部都修改
    public static String school;

    public Student(String name, int age, String school) {
        this.name = name;
        this.age = age;
        this.school = school;
    }

    public Student() {
    }

    public void show() {
        System.out.println("姓名：" + name + " 年龄：" + age + " 学校：" + school);
    }
}
